package edu.nf.waimai.service.order;

import edu.nf.waimai.model.order.Order;
import edu.nf.waimai.model.order.UserOrder;

import java.util.List;

/**
 * @Date 2023/6/26
 * @Author zgm
 */
public interface OrderService {
    /**
     * 添加订单业务
     * @param order
     * @param
     * @return
     */
    int addOrder(Order order);

    /**
     * 根据订单的类型来映射
     * @param uid
     * @return
     */
    List<UserOrder> queryOrder(Integer uid, String orderType);

    /**
     * 根据用户订单修改订单状态
     * @param orderId
     * @param status
     * @return
     */
    int updateOrderStatus(String orderId, Integer status);
}
